package com.tangyuan.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.activity.UserActivity;
import com.tangyuan.vo.UserActivityVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Description: user_activity
 * @Author: jeecg-boot
 * @Date:   2024-03-20
 * @Version: V1.0
 */
@Mapper
public interface UserActivityMapper extends BaseMapper<UserActivity> {


    List<UserActivityVo> checkActiveIsBand(Long id,Long type);

    Date selectEndRTimeById(Long id);

    Integer selectExamineById(Long id);

    void publishActive(Long id);

    UserActivity getActiveById(Long id);

    List<UserActivityVo> selectListAddName();

    void setReadNumByIds(List<Long> userActivityIds);

    UserActivity getVoteById(@Param("voteId") Long voteId);
}
